Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[reference] Fix external links #686

Merged
merged 3 commits into from
Mar 7, 2025
Merged

Conversation

colleenmcginnis
Copy link
Contributor

In the migration tool, external URLs that contained .html were incorrectly modified to use .md.

To (attempt) to fix these links:

  1. I ran a script to find URLs that started with http (i.e. is not an internal or cross-repo link) and included .md somewhere in the URL.
  2. Then I ran all the resulting URLs through an external link-checker.
    i. If I got a 200 status code back, I didn't do anything to the link.
    ii. If I got a 404 status code back, I swapped out the .md with .html.
  3. I reran the link-checker to make sure all the updated links were now returning 200.

@colleenmcginnis colleenmcginnis requested a review from lcawl March 6, 2025 01:05
@colleenmcginnis colleenmcginnis self-assigned this Mar 6, 2025
@bmorelli25
Copy link
Member

bmorelli25 commented Mar 6, 2025

Copy link
Contributor

@leemthompo leemthompo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@colleenmcginnis colleenmcginnis enabled auto-merge (squash) March 7, 2025 15:44
@colleenmcginnis colleenmcginnis merged commit df8d196 into main Mar 7, 2025
3 of 4 checks passed
@colleenmcginnis colleenmcginnis deleted the fix-external-links-reference branch March 7, 2025 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants